﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ControleurWorkflow
{
    class CTRL_WF_EMPLSITE_V1 : I_CTRL_WF
    {
        private FactoryMessage.STGMSG oMsg;
        private ComposantMappage.MAPP_TB_PERSONNE personnes;
        private CoucheAccesDonnees.CAD cad;

        public FactoryMessage.STGMSG exec(FactoryMessage.STGMSG oMsg)
        {
            this.personnes = new ComposantMappage.MAPP_TB_PERSONNE();
            this.cad = new CoucheAccesDonnees.CAD();
            oMsg = this.personnes.select_emp_site_psw(oMsg);
            oMsg.Data = new object[] { oMsg.Data[0], (object)"employeSite" };
            oMsg = this.cad.get_Rows(oMsg);
            this.oMsg = FactoryMessage.MSG_FACTORY.msg_factory("", new object[] { (object)oMsg.Data[0] }, "", "", "", true, "");
            return this.oMsg;
        }
    }
}
